﻿# coding: utf-8

import mk3de

import Utilities
import wxFramework
import Misc.Language.English
import Editor

from wxFramework.wxModelEditorApp import wxModelEditorApp

if __name__ == '__main__':      
    # Load all configures
    GLOBAL_SETTING.Load()
    
    # Create model editor application
    app = wxModelEditorApp()
    
    # Initialize model editor.
    if MODEL_EDITOR.Create():
        
        # Initialize before loop
        app.Initialize()
    
        # Enter the main loop
        app.MainLoop()
        
        # Destroy model editor
        MODEL_EDITOR.Destroy()
    
    # Save all configures
    GLOBAL_SETTING.Save()
    
